package gate

import (
	"github.com/chenwbyx/leafserver/server/login"
	"github.com/chenwbyx/leafserver/server/msg"
	"github.com/chenwbyx/leafserver/server/msg/client"
)

func init() {
	// 模块间使用 ChanRPC 通讯，消息路由也不例外
	msg.NewProcessor.SetRouter(&client.UserRegisterReq{}, login.ChanRPC)
	msg.NewProcessor.SetRouter(&client.UserLoginReq{}, login.ChanRPC)
}
